<!DOCTYPE html>
<html >
    <head>
        <meta charset="UTF-8">
        <title>声明对象（json）</title>
        <link rel='stylesheet' type='text/css' href='../css/c1.css'>
    </head>
    <body>
    <div class="title">
        声明对象
    </div>
    <div class="title">
       代码示例
    </div>
    <div class="code">
        <pre>
                var obj1 = new Object();
                var obj2 = new fun();
                var obj3 = {};//json   javascript的原生数据对象  主要用于数据传输 吧

        </pre>
    </div>
    <div class="title">
        代码示例
    </div>
    <div class="code">
        <pre>
            var data = {
                "HN": {
                    name: "湖南省",
                    child: {
                        "GZ": {
                            name: "长沙市",
                            child: {
                                "YL": {name: "岳麓区"},
                                "YH": {name: "雨花区"},
                                "TX": {name: "天心区"},
                                "KY": {name: "开元区"}

                            }
                        },
                        "ZZ": {
                            name: "株洲市",
                            child: {
                                "LS": {name: "芦淞区"},
                                "SF": {name: "石峰区"},
                                "TY": {name: "天元区"}
                            }
                        }
                    }
                }
            }
        </pre>
    </div>
    <div class="title">
        代码效果
    </div>
    <div class="code">
     <a href="../work/change.html">json代码示例效果<div></div></a>
    </div>
    </body>
</html>